import Layout from '@neu/biz-core/layout'
import portalRouter from './portal'
import dcomRouter from './dcom'
import dcamRouter from './dcam'
import settingRouter from './setting'

export const topMenus = [
  {
    title: '统一访问门户',
    module: 'portal',
    defaultActive: true,
    redirect: '/portal/bigscreen',
    icon: 'asset'
  },
  {
    title: '运维管理',
    module: 'dcom',
    redirect: '/operations/opfuwutai',
    icon: 'asset'
  },
  {
    title: '资产管理',
    module: 'dcam',
    redirect: '/assets/assetfuwutai',
    icon: 'system'
  },
  {
    title: '配置管理',
    module: 'setting',
    redirect: '/cmdb/schemas',
    icon: 'system'
  }
]

const routes = [{
  path: '/',
  component: Layout,
  redirect: '/operations/opfuwutai',
  hidden: true
},
...portalRouter,
...dcomRouter,
...dcamRouter,
...settingRouter
]

export default routes
